package com.znsd.zl.contract.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.znsd.zl.contract.entity.*;
import com.znsd.zl.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: IContractService
 * @Program: zlhouse-manage
 * @Description: 合同业务层接口
 * @Author: tangjun
 * @Date: 2020-08-19 11:46
 * @Version 1.0
 **/
public interface IContractService extends IService<ContractEntity> {
	
	/**
	 * 条件查询
	 * @param id 查
	 * @return
	 */
	HouseEntity queryHousesery(Integer id);
	/**
	 * 条件查询
	 * @param id
	 * @return
	 */
	UserEntity queryUser(Integer id);
	
	/**
	 * 查询所有
	 * @param pageNum
	 * @param pageSize
	 * @param params
	 * @return
	 */
	PageUtils queryContract(Integer pageNum, Integer pageSize,Map<String, Object> params);
	
	
	/**
	 *  管理员合同添加
	 * @param contractQueryEntity
	 * @return
	 **/
	Integer addContractAdmin(ContractQueryEntity contractQueryEntity);
	
	
	/**
	 * 进行合同添加
	 * @param contractEntity
	 * @return
	 **/
	Integer addContract(ContractEntity contractEntity);
	
	/**
	 * 根据id查询数据
	 * @param id
	 * @return
	 **/
	ContractQueryEntity qeryAdmin(Integer id);
	
	/**
	 *  根据contractEntity对象查询数据
	 * @param contractEntity
	 * @return
	 **/
	List<ContractQueryEntity> getAdminQuery(ContractEntity contractEntity);
	
	/**
	 *  修改数据
	 * @param contractQueryEntity
	 * @return
	 **/
	Integer updateAdmin(ContractQueryEntity contractQueryEntity);
}
